function y = e_h2(x)
% Extended Himmelblau Function
%x0=[1, 1, ....., 1]  
%fmin=n/2
%Author:shi yangyang
n=length(x);
m=n/2;
y=ones(1,m);
for i=1:1:m
    u1=x(2*i-1)^2+x(2*i)-11.0;
    v1=x(2*i-1)+x(2*i)^2-7.0;
    y(i)=u1^2+v1^2;
end
y=sum(y);
